import { TOGGLE_DRAWER } from '../actions';
import { injectReducer } from '../store/reducers';

// Action Handlers
const ACTION_HANDLERS = {
  [TOGGLE_DRAWER]: (state, action) => !state
};

// Reducer
const initialState = true;
const appBarR = (state = initialState, action) => {
	console.log(state, action);
  const handler = ACTION_HANDLERS[action.type];
  console.log(handler ? handler(state, action) : state);
  return handler ? handler(state, action) : state;
}

export default  appBarR;